<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/commons/global.jsp" %>
<!-- 上传部分 -->
<link href="${path}/static/uploadify/uploadify.css" rel="stylesheet" type="text/css">
<script type="text/javascript"  src="${path}/static/uploadify/jquery.uploadify.js"></script>

<script type="text/javascript">
    $(function() {
        $('#appServiceEditForm').form({
            url : '${path }/appService/edit',
            onSubmit : function() {
                progressLoad();
                var isValid = $(this).form('validate');
                if (!isValid) {
                    progressClose();
                }
                return isValid;
            },
            success : function(result) {
                progressClose();
                result = $.parseJSON(result);
                if (result.success) {
                    parent.$.modalDialog.openner_dataGrid.datagrid('reload');
                    parent.$.modalDialog.handler.dialog('close');
                }
            }
        });
    });


</script>
<div style="padding: 3px;">
    <form id="appServiceEditForm" method="post">
        <table class="grid">
            <tr >
            <input name = "id" hidden="true" value="${appService.id}">
            <td>服务中心名称</td>
            <td colspan="3">
                <input name="serviceName" type="text" value="${appService.serviceName}" placeholder="请输入服务中心名称" class="easyui-validatebox" data-options="required:true">
            </td>
        </tr>
            <tr>
                <td>联系人员</td>
                <td colspan="3">
                    <input name="pName" type="text" value="${appService.pName}" placeholder="请输入联系人" class="easyui-validatebox" data-options="required:true">
                </td>
            </tr>
            <tr>
                <td>联系电话</td>
                <td colspan="3">
                    <input name="pPhone" type="text" value="${appService.pPhone}" placeholder="请输入联系电话" class="easyui-validatebox" data-options="required:true">
                </td>
            </tr>
            <tr>
                <td>状态</td>
                <td >
                    <select  name="status" class="easyui-combobox" data-options="width:100,height:29,editable:false,panelHeight:'auto'">
                        <option value="0">禁用</option>
                        <option value="1">正常</option>
                    </select>
                </td>
            </tr>
        </table>
    </form>
</div>